﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!doctype html>
<html lang="en-au">
    <head>
        <title>查看人员项目分成表</title>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" >
        <link rel="stylesheet" href="../view/gantt/css/style.css" />
        <link rel="stylesheet" href="../view/gantt/css/prettify.css" />
		<style type="text/css">
			body {
				font-family: Helvetica, Arial, sans-serif;
				font-size: 13px;
				padding: 0 0 50px 0;
			}
			.contain {
				width: 1000px;
				margin: 0 auto;
				float:left;
				text-align:left;
			}
			h1 {
				margin: 40px 0 20px 0;
			}
			h2 {
				font-size: 1.5em;
				padding-bottom: 3px;
				border-bottom: 1px solid #DDD;
				margin-top: 10px;
				margin-bottom: 25px;
			}
			table th:first-child {
				width: 150px;
			}
		</style>
    </head>
    <body>
		<div class="contain">
	    	<h2>
	    		[${project.pjProjectname }]项目[${depart.hdpName }]部门 下的全部人员信息   
	    		<input type="button" value="返回" onclick="javascript:history.back()">
	    	</h2>
			<div class="gantt"></div>
		</div>

    </body>
	<script src="../view/gantt/js/jquery-1.7.min.js"></script>
	<script src="../view/gantt/js/jquery.fn.gantt.js"></script>
	<script src="../view/gantt/js/prettify.js"></script>
    <script>
		$(function() {
			"use strict";
			$(".gantt").gantt({
				source:<%=request.getAttribute("jdata") %>,
				navigate: "scroll",
				scale: "months",
				maxScale: "months",
				minScale: "days",
				itemsPerPage: 15,
				onItemClick: function(data) {
					//alert("Item clicked - show some details");
				},
				onAddClick: function(dt, rowId) {
					//alert("Empty space clicked - add an item!");
				},
				onRender: function() {
					if (window.console && typeof console.log === "function") {
						console.log("chart rendered");
					}
				}
			});

			/* $(".gantt").popover({
				selector: ".bar",
				title: "I'm a popover",
				content: "And I'm the content of said popover.",
				trigger: "hover"
			}); */

			prettyPrint();

		});

    </script>
    <script type="text/javascript">
    function editperson(id){
    	var pjid = ${project.id };
		var hdpid = ${depart.id };
		var url = "<%=request.getContextPath()%>/tostpjteamdetail/openperson.do?id="+id;
		window.open(url,'openper','height=450,width=500,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
	} 
    </script>
</html>